package com.sac.approval.dao;

import com.sac.approval.domain.AttachmentDO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * 
 * @author chglee
 * @email 1992lcg@163.com
 * @date 2018-09-18 14:37:46
 */
@Mapper
public interface AttachmentDao {

	AttachmentDO get(String fileId);
	
	List<AttachmentDO> list(Map<String,Object> map);
	
	int count(Map<String,Object> map);
	
	int save(AttachmentDO attachment);
	
	int update(AttachmentDO attachment);
	
	int remove(String file_id);

	int removeByAppId(String appId);

	int removeByAppTemplateId(String app_template_id);
	
	int batchRemove(String[] fileIds);
}
